package cn.elwy.rcp.ui.explorer.composite;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class ProjectComposite extends Composite {
  private Button dataBrowsButton;
  private Text pathText;
  private Label dataCheckButton;
  private Text projectNameText;
  private Text txtHttpsvnsofatrunksourcecodedbscriptsql;
  private Label lblSvn;
  private Text txtsourcecode;
  private Text txtHttpsvnsofatrunksourcecodedbscriptsql_1;
  private Label label;
  private Text txtsourcecodedbscript;
  private Label lblDemo;
  private Text txtsourcecodedemo;
  private Label lblv;
  private Text text;
  private Label label_3;
  private Text txtcontainersofacontainer;
  private Label lblpom;
  private Text txtpomcomysssofaplatformparent;
  private Button button_1;
  private Button button_2;
  private Composite composite;
  private Button button;
  private Button button_3;
  private Button button_4;
  private Button button_5;
  private Button button_6;
  private Label lbls;
  private Label lbls_1;
  private Text text_1;
  private Text txtEreleasesofa;
  private Button button_7;
  private Button button_8;
  private Label label_2;
  private Composite composite_1;
  private Text text_2;
  private Label lblv_1;
  private Text txtHead;
  private Button btnHead;
  private Button button_9;

  /**
   * Create the composite.
   * 
   * @param parent
   * @param style
   */
  public ProjectComposite(Composite parent, int style) {
    super(parent, SWT.NONE);
    setLayout(new GridLayout(4, false));
    Label projectNameLabel = new Label(this, SWT.NONE);
    projectNameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    projectNameLabel.setText("工程名称(&P)：");

    composite = new Composite(this, SWT.NONE);
    GridLayout gl_composite = new GridLayout(3, false);
    gl_composite.marginWidth = 0;
    gl_composite.marginHeight = 0;
    composite.setLayout(gl_composite);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1));

    this.projectNameText = new Text(composite, SWT.BORDER);
    projectNameText.setText("sofa");
    projectNameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));

    lblv = new Label(composite, SWT.NONE);
    lblv.setText("版本号(&V)：");

    text = new Text(composite, SWT.BORDER);
    GridData gd_text = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
    gd_text.widthHint = 50;
    text.setLayoutData(gd_text);
    text.setText("2.2.0");

    this.dataCheckButton = new Label(this, SWT.NONE);
    dataCheckButton.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    this.dataCheckButton.setText("工程路径：");

    this.pathText = new Text(this, SWT.BORDER | SWT.READ_ONLY);
    pathText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    pathText.setEditable(true);
    this.pathText.setText("E:/Builder/workspace/sofa_2.2.0");

    this.dataBrowsButton = new Button(this, SWT.NONE);
    this.dataBrowsButton.setText("浏览");

    lbls = new Label(this, SWT.NONE);
    lbls.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lbls.setText("源码路径：");

    text_1 = new Text(this, SWT.BORDER | SWT.READ_ONLY);
    text_1.setText("E:/Release/Trunk");
    text_1.setEditable(true);
    text_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));

    button_7 = new Button(this, SWT.NONE);
    button_7.setText("浏览");

    lbls_1 = new Label(this, SWT.NONE);
    lbls_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lbls_1.setText("输出路径：");

    txtEreleasesofa = new Text(this, SWT.BORDER | SWT.READ_ONLY);
    txtEreleasesofa.setText("E:/Release/sofa_2.2.0");
    txtEreleasesofa.setEditable(true);
    txtEreleasesofa.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));

    button_8 = new Button(this, SWT.NONE);
    button_8.setText("浏览");

    lblSvn = new Label(this, SWT.NONE);
    lblSvn.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblSvn.setText("SVN地址：");

    txtHttpsvnsofatrunksourcecodedbscriptsql = new Text(this, SWT.BORDER);
    txtHttpsvnsofatrunksourcecodedbscriptsql.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtHttpsvnsofatrunksourcecodedbscriptsql.setText("http://192.168.101.248/svn/SOFA/Trunk");

    button_1 = new Button(this, SWT.NONE);
    button_1.setText("浏览");

    label_2 = new Label(this, SWT.NONE);
    label_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_2.setText("基线版本：");

    composite_1 = new Composite(this, SWT.NONE);
    composite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 3, 1));
    GridLayout gl_composite_1 = new GridLayout(5, false);
    gl_composite_1.marginWidth = 0;
    gl_composite_1.marginHeight = 0;
    composite_1.setLayout(gl_composite_1);

    text_2 = new Text(composite_1, SWT.BORDER);
    text_2.setText("50");
    GridData gd_text_2 = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);
    gd_text_2.widthHint = 120;
    text_2.setLayoutData(gd_text_2);

    lblv_1 = new Label(composite_1, SWT.NONE);
    lblv_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblv_1.setText("当前版本：");

    btnHead = new Button(composite_1, SWT.RADIO);
    btnHead.setSelection(true);
    btnHead.setText("HEAD");

    button_9 = new Button(composite_1, SWT.RADIO);

    txtHead = new Text(composite_1, SWT.BORDER);
    GridData gd_txtHead = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
    gd_txtHead.widthHint = 120;
    txtHead.setLayoutData(gd_txtHead);

    Label sourceLabel = new Label(this, SWT.NONE);
    sourceLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    sourceLabel.setText("源码目录：");

    txtsourcecode = new Text(this, SWT.BORDER);
    txtsourcecode.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtsourcecode.setText("/SourceCode");

    button_2 = new Button(this, SWT.NONE);
    button_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button_2.setText("浏览");

    label = new Label(this, SWT.NONE);
    label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label.setText("文档目录：");

    txtHttpsvnsofatrunksourcecodedbscriptsql_1 = new Text(this, SWT.BORDER);
    txtHttpsvnsofatrunksourcecodedbscriptsql_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtHttpsvnsofatrunksourcecodedbscriptsql_1.setText("/Documents/19-DevGuide");

    button = new Button(this, SWT.NONE);
    button.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button.setText("浏览");

    lblDemo = new Label(this, SWT.NONE);
    lblDemo.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblDemo.setText("演示目录：");

    txtsourcecodedemo = new Text(this, SWT.BORDER);
    txtsourcecodedemo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtsourcecodedemo.setText("/SourceCode/05-Demo");

    button_3 = new Button(this, SWT.NONE);
    button_3.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button_3.setText("浏览");

    Label label_1 = new Label(this, SWT.NONE);
    label_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_1.setText("脚本目录：");

    txtsourcecodedbscript = new Text(this, SWT.BORDER);
    txtsourcecodedbscript.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtsourcecodedbscript.setText("/SourceCode/09-DBScript");

    button_4 = new Button(this, SWT.NONE);
    button_4.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button_4.setText("浏览");

    label_3 = new Label(this, SWT.NONE);
    label_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    label_3.setText("容器路径：");

    txtcontainersofacontainer = new Text(this, SWT.BORDER);
    txtcontainersofacontainer.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtcontainersofacontainer.setText("/SourceCode/01-Container/sofa-container");

    button_5 = new Button(this, SWT.NONE);
    button_5.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button_5.setText("浏览");

    lblpom = new Label(this, SWT.NONE);
    lblpom.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    lblpom.setText("父POM路径：");

    txtpomcomysssofaplatformparent = new Text(this, SWT.BORDER);
    txtpomcomysssofaplatformparent.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
    txtpomcomysssofaplatformparent.setText("/SourceCode/00-Pom/com.yss.sofa.platform.parent");

    button_6 = new Button(this, SWT.NONE);
    button_6.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));
    button_6.setText("浏览");

  }

  @Override
  protected void checkSubclass() {
    // Disable the check that prevents subclassing of SWT components
  }

}
